package gui;

import eventbus.PageEventBus;

import javax.swing.*;
import javax.swing.plaf.FontUIResource;
import java.awt.*;
import java.awt.event.ActionListener;
import java.util.Enumeration;

public abstract class BasePanel extends JPanel {
    private static final int WIDTH = 800;
    private static final int HEIGHT = 400;
    static ActionListener backListener;

    public BasePanel() {
        PageEventBus.subscribe(this);
        this.setLayout(null);
//        this.setBackground(Color.green);
        this.setBounds(100,100,WIDTH,HEIGHT);
    }


    /**
     * 清除所有的输入
     */
    public abstract BasePanel clearAllInput();

}
